package cn.newhopedairy.delivery.infrastructure.db.po;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDate;
import java.time.LocalDateTime;
import cn.newhopedairy.common.po.SuperPo;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * 订单日计划
 *
 * @author Neo.Li
 * @since 2020-10-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("delivery_order")
@ApiModel(value="DeliveryOrderPo对象", description="配送单")
public class DeliveryOrderPo extends SuperPo {


    @ApiModelProperty(value = "订单号")
    @TableField("order_no")
    private String orderNo;

    @ApiModelProperty(value = "收货人姓名")
    @TableField("receiver_name")
    private String receiverName;

    @ApiModelProperty(value = "收货人手机号")
    @TableField("receiver_mobile")
    private String receiverMobile;

    @ApiModelProperty(value = "收货人地址")
    @TableField("receiver_addr")
    private String receiverAddr;

    @ApiModelProperty(value = "配送日期")
    @TableField("delivery_date")
    private LocalDate deliveryDate;

    @ApiModelProperty(value = "配送状态(1-未送达，2-送达)")
    @TableField("status")
    private Boolean status;

    @ApiModelProperty(value = "商品名称")
    @TableField("goods_name")
    private String goodsName;

    @ApiModelProperty(value = "商品金额")
    @TableField("goods_money")
    private BigDecimal goodsMoney;

    @ApiModelProperty(value = "配送数量")
    @TableField("delivery_count")
    private Integer deliveryCount;


}
